package com.aos.erp.gov.ex.web.rpc;

import com.aos.erp.common.bean.PageBean;
import com.aos.erp.gov.ex.model.GovExRegisterTask;
import com.aos.erp.gov.ex.model.dto.QueryRegisterTaskDTO;
import com.aos.erp.gov.ex.service.GovExRegisterTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Slf4j
@RestController("RPCGovExRegisterTaskController")
@RequestMapping("/service/gov/ex/register/task")
@Api("RPCGovExRegisterTaskController")
public class GovExRegisterTaskController {

    @Resource
    private GovExRegisterTaskService govExRegisterTaskService;

    @PostMapping("/list")
    @ApiOperation(value = "分页查询,type: 0 创建时间 1 提交时间")
    public PageBean<GovExRegisterTask> queryPageBean(@RequestBody QueryRegisterTaskDTO dto) {
        return govExRegisterTaskService.queryByPage(dto);
    }

}